#ifndef TCV_DECTHANDLE_HPP
#define TCV_DECTHANDLE_HPP

#include <QThread>
#include <opencv.hpp>

//class TCV_DMHandle;

class TCV_DectHandle:public QThread
{
    Q_OBJECT
public:
    TCV_DectHandle(QObject *i_dmhandle);
    bool GetImage(cv::Mat &o_matPicture);
    bool OutputDectImage(cv::Mat i_matPicture);
    void run();
    bool GetDectResult(cv::Point &t_point);

signals:
    void SN_DectFinish(int signal_num);

private:
    QObject *m_DmHandle;
};

#endif // TCV_DECTHANDLE_HPP
